package com.ems.dao;

import com.ems.dto.*;
import com.ems.entity.Question;
import com.ems.entity.Student;
import org.apache.ibatis.annotations.Mapper;

import java.lang.invoke.CallSite;
import java.util.List;

@Mapper
public interface MyDtoMapper {
    PersonInfo personInfoStu(Integer id);

    PersonInfo personInfoTea(String username,Integer id);

    //1.22王
    //TODO 返回集合问题DDD
    Score score(Integer stuid);

    List<ErrorMsg.errorMsg> errorMsg();

    List<Choice> queryQuestion_singleChoice(Question question);

    List<Choice> queryQuestion_multipleChoice(Question question);

    StudentAnswer markPaper(Integer eid,Integer uid);

    //选项无法查询出来，select无法到第三级
    StudentPaper studentGetExamPaper(Integer eid,Integer uid);

    TeacherExamPaper teacherGetExamPaper(Integer eid);

    //1/20 宋
    List<ExamInfo> examInfo(String promulgator);

    List<ExamInfo> inviExamInfo(List<Integer> idList);

    //TODO 待完成
    ExamAnalyze examAnalyze(Integer eid);
}
